package com.linx.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.linx.common.excel.convert.ExcelDictConvert;
import com.linx.common.translation.annotation.Translation;
import com.linx.common.translation.constant.TransConstant;
import com.linx.system.domain.SysUserGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 人员群组视图对象 user_group
 *
 * @author 泽智科技
 * @date 2024-10-02
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysUserGroup.class)
public class SysUserGroupVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long userGroupId;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 组名称
     */
    @ExcelProperty(value = "组名称")
    private String groupName;

    /**
     * 组内用户
     */
    @ExcelProperty(value = "组内用户", converter = ExcelDictConvert.class)
    private List<Long> userIds;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createBy;

    /**
     * 创建人姓名
     */
    @ExcelProperty(value = "创建人姓名")
    @Translation(type = TransConstant.USER_ID_TO_NAME, mapper = "createBy")
    private String createName;


    /**
     * 人员数量
     */
    @ExcelProperty(value = "人员数量", converter = ExcelDictConvert.class)
    private Long userNum;




}
